package tbalert.web.dao.impl;

import tbalert.hibernate3.HibernateBaseDao;
import tbalert.web.dao.BlxxkDao;
import tbalert.web.entity.Blxxk;

public class BlxxkDaoImpl extends HibernateBaseDao<Blxxk, String> implements BlxxkDao {
	
	@Override
	public Blxxk deleteById(String kicid) {
		Blxxk entity = super.get(kicid);
		if (entity != null) {
			getSession().delete(entity);
		}
		return entity;
	}

	@Override
	public Blxxk save(Blxxk bean) {
		getSession().save(bean);
		return bean;
	}

	@Override
	public Blxxk findById(String kicid) {
		return get(kicid);
	}

	@Override
	public void update(Blxxk blxxk) {
		getSession().update(blxxk);
	}

	@Override
	protected Class<Blxxk> getEntityClass() {
		return Blxxk.class;
	}

}
